New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@moosty/lisk-service-provider

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@moosty/lisk-service-provider

Lisk service provider component to connect react to Lisk service


Version published
Weekly downloads
3
increased by200%
Maintainers
2
Weekly downloads
 
Created

Lisk Service Provider

With Lisk Service provider, you can access the lisk service apis.

import { LiskServiceProvider } from "@moosty/lisk-service-provider"

const targetNetwork = [
  {
    host: "wss://gateway-testnet.liskscan.com",
    type: "serviceRPC",
  },
]

ReactDOM.render(
  +<LiskServiceProvider endpoints={targetNetwork}>
    <App />
    + </LiskServiceProvider>,
  document.getElementById("root"),
)

Usage

also see @moosty/lisk-connection-provider

import { useLiskService } from "@moosty/lisk-service-provider"

const Component = () => {
  const {
    endpoints,
    connections,
    serviceClient, // see @moosty/lisk-connection-provider
    coreClient,
  } = useLiskService()
}

This package exports:

import {
  LiskServiceProvider, // Provider
  NetworkEndpoint,
  ConnectionProviderProps,
  ConnectionState,
  LiskClientContext,
  useLiskService,
  ServiceRPCController

} from "@moosty/lisk-service-provider"

FAQs

Package last updated on 17 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts